<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test - unFocus.EventManager</title>
<!--
unFocus.Tests (svn $Revision: 32 $) $Date: 2009-06-13 07:32:05 +0000 (Sat, 13 Jun 2009) $
Copyright: 2007-2009, Kevin Newman (http://www.unfocus.com/)
http://www.opensource.org/licenses/mit-license.php
-->
<script type="text/javascript" src="../javascript/EventManager.js"></script>
<script type="text/javascript">
var foo = new unFocus.EventManager("one", "two");

function tester1() {
	alert('test set 1 - 1');
}
function tester2() {
	alert('test set 1 - 2');
	error++;
}
function tester3() {
	alert('test set 1 - 3');
}
function tested1() {
	alert('test set 2 - 1');
}
function tested2() {
	alert('test set 2 - 2');
	error++;
}
function tested3() {
	alert('test set 2 - 3');
}
foo.addEventListener("one", tester1);
foo.addEventListener("one", tester2);
foo.addEventListener("one", tester3);

foo.addEventListener("two", tested1);
foo.addEventListener("two", tested2);
foo.addEventListener("two", tested3);
</script>
</head>

<body>
<p>unFocus.History Keeper, Testing <strong>unFocus.EventManager</strong>:</p>
<p>Testing</p>
<p><a href="#" onClick="foo.notifyListeners('one');return false;">One</a>
<a href="#" onClick="foo.notifyListeners('two');return false;">Two</a></p>
</body>
</html>
